<template>
	<view>
		<dsl-navbar title="" bgTopImg="#ffffff" isBack="true"></dsl-navbar>
		<view class="flex align-center padding">
			<image :src="userInfo.avatar" mode="aspectFill" class="user_image"></image>
			<view class="margin-left-sm">
				<view class="align-center " style="width: 400rpx;" @click="userSetting()">
					<view class="margin-right onelineshow">{{userInfo.userName ||'暂无昵称'}}</view>
					<image src="/static/user/modules/imgqian-1.png" mode="" style="height: 40rpx;width: 40rpx;"></image>
				</view>
				<view class="align-center margin-top-sm ">
					<image src="/static/square/imgdingwei-1.png" mode="" class="icon_address"></image>
					<view style="color: #9AA2B5;">
						<text class="margin-lr-sm">地址假数据</text>
						<text class="">0米</text>
					</view>
				</view>
			</view>
		</view>
		<view class="padding align-center rowsb" @click="tableMen()">
			<view class="align-center">
				<image src="/static/user/modules/imgzuanshi-1.png" mode="" style="height: 40rpx;width: 40rpx;"></image>
				<view class="margin-left-sm">
					个人优势
				</view>
			</view>
			<text class="cuIcon-right"></text>
		</view>
		<view class="flex flex-wrap padding-lr">
			<view class="table" v-for="(item,index) in 2">
				个人优势
			</view>
		</view>

		<view class="align-center padding">
			<image src="/static/user/modules/imgpingjia.png" mode="" style="height: 40rpx;width: 40rpx;"></image>
			<text class="margin-left-sm">通话评价</text>
		</view>

		<view class="padding-lr">
			<view class="align-center">
				<image src="/static/user/modules/imgxingxing-1.png" mode="" style="height: 40rpx;width: 40rpx;"
					v-for="(item,index) in 4" class="margin-lr-xs"></image>
				<!-- <image src="../../../static/user/modules/imgxingxing-2.png" mode="" style="height: 40rpx;width: 40rpx;"></image> -->
				<view style="color: #B7BED8;" class="text-sm margin-left-xs">4.0</view>
			</view>
		</view>
		<view class="padding-xl text-center" style="color: #B7BED8;">
			当前收获的评价内容不足
		</view>
		<view class="text-black text-bold text-xl padding">动态</view>
		<view class="text-center">
			<image src="/static/plugins/imgzanwu.png" mode="widthFix" style="width: 430rpx;"></image>
			<view style="color: #B7BED8;">暂无动态</view>
		</view>
		<view class="rowsa position" style="bottom: 30rpx;">
			<view class="submit1" @click="chatMessage()">私信</view>
			<view class="submit2">视频</view>
		</view>
	</view>
</template>

<script>
	import {
		getUserInfo
	} from '@/common/path.js'
	export default {
		data() {
			return {
				userInfo: {}
			}
		},
		//生命周期函数
		onReady() {},
		onLoad() {
			this.getUserInfo() //用户信息
		},
		onShow() {},
		methods: {
			//获取用户信息
			getUserInfo() {
				let data = {
					id: uni.getStorageSync('userInfo').id
				}
				this.Http.POST(getUserInfo, data)
					.then((res) => {
						if (res.code == 0) {
							console.log('[用户信息]', res);
							this.userInfo = res.data
						}
					})
			},
			//个人主页设置
			userSetting() {
				uni.navigateTo({
					url: '/pages/userInfo/modules/userSetting'
				})
			},
			//个人优势跳转
			tableMen() {
				uni.navigateTo({
					url: '/pages/userInfo/modules/meritForm'
				})
			},
			//私信
			chatMessage() {
				uni.navigateTo({
					url: '/pages/chat/chat'
				})
			}

		},
		computed: {},
		components: {}
	}
</script>

<style>
	.user_image {
		width: 142rpx;
		height: 142rpx;
		border-radius: 50%;
		opacity: 1;
	}

	.icon_address {
		height: 40rpx;
		width: 40rpx;
	}

	.submit1 {
		width: 260rpx;
		height: 80rpx;
		background: #FFFFFF;
		border: 2rpx solid #707070;
		opacity: 1;
		border-radius: 40rpx;
		line-height: 80rpx;
		text-align: center;
	}

	.submit2 {
		width: 260rpx;
		height: 80rpx;
		background: linear-gradient(180deg, #EAA019 0%, #BA4949 100%);
		opacity: 1;
		border-radius: 40rpx;
		line-height: 80rpx;
		text-align: center;
		color: white;
	}

	.position {
		position: fixed;
		left: 0;
		right: 0;
		z-index: 99;
	}

	.table {
		padding: 10rpx 30rpx 10rpx 30rpx;
		border: 1rpx solid #333333;
		border-radius: 9rpx;
		margin-left: 20rpx;
		margin-top: 20rpx;
		border-radius: 99rpx;
	}
</style>
